<!DOCTYPE html>
<?php
	require_once("includes/header.php");
	require_once("includes/functions_chart.php");
	require_once("includes/connection_db.php");

   $campos = array("date", "price");
   $atributos = array();
   $atributos[0][] = "Jan 2000";
   $atributos[0][] = 1394.46;
   
   $atributos[1][] = "Feb 2000";
   $atributos[1][] = 1366.42;

   $atributos[2][] = "Mar 2000";
   $atributos[2][] = 1498.58;
   
   $atributos[3][] = "Apr 2000";
   $atributos[3][] = 1452.43;
   
   $atributos[4][] = "May 2000";
   $atributos[4][] = 1420.6;
  
   $atributos[5][] = "Jun 2000";
   $atributos[5][] = 1454.6;
   
   $atributos[6][] = "Jul 2000";
   $atributos[6][] = 1430.83;
   
   $atributos[7][] = "Aug 2000";
   $atributos[7][] = 1517.68;
   
   $atributos[8][] = "Sep 2000";
   $atributos[8][] = 1436.51;
   
   $atributos[9][] = "Oct 2000";
   $atributos[9][] = 1429.4;
   
   $atributos[10][] = "Nov 2000";
   $atributos[10][] = 1314.95;
   
   $atributos[11][] = "Dec 2000";
   $atributos[11][] = 1320.28;

   $ancho1=960;
   $alto1=300;
   $alto2=300;
   $margin1 = array("top" => 10, "right" => 10, "bottom" => 100, "left" => 40);
   $margin2 = array("top" => 250, "right" => 10, "bottom" => 20, "left" => 40);
   csv($campos,$atributos);
	grafica_d3_double_timeline($ancho1, $alto1,$alto2, $margin1, $margin2);
	require_once("includes/footer.php");
?>